Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

310
Visualizações
How to get selected image content in office[Word Powerpoint] web addin?

I want to develop an office add in to add image effect to user selected image. but i did not find how to get the image content in the reference.

I have tried getSelectedDataAsync api, but it not work.

Office.context.document.getSelectedDataAsync(Office.CoercionType.Image, function(asyncResult) {
            console.log(asyncResult)
});

Console output:

OSF.DDA.AsyncResult {value: undefined, status: 'failed', error: OSF.DDA.Error}

I also tried presentation.getSelectedShapes api, but it not work either. getSelectedShapes can get the selected shape and i can get the shape type and make sure the shape is an image, but there is no method to get the image content.

PowerPoint.run(function(context) { o = context.presentation.getSelectedShapes().getItemAt(0); o.load(); console.log(o); return context.sync() })

So is there a way to get the image content in office add-in?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda